const filters = {
    cutDot(dataStr){
        var arr = dataStr.split('/');
        var arr1 = arr[arr.length-1].split('.');    
        return arr1[0]
    },
    ago_current(agotime){
        let currentT = new Date().getTime();        
        if(agotime == '0000-00-00'){
            return 'ago'
        }
        let tt = agotime+' 00:00:01'
        let agoT0 = new Date(tt)
        let agoT = agoT0.getTime();
        if((currentT - agoT)>0){
            return 'ago'//true;
        }else{
            return 'future'//false
        }
    },
}
 export default filters